import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {ElModule} from "element-angular";
import {BrowserAnimationsModule} from '@angular/platform-browser/animations'
import {AppRoutingModule} from './app-routing.module';
import {AppComponent} from './app.component';
import {DeviceComponentComponent} from './device-component/device-component.component';
import {RuleComponentComponent} from './rule-component/rule-component.component';
import {SimulationComponentComponent} from './simulation-component/simulation-component.component';
import {HTTP_INTERCEPTORS} from "@angular/common/http";
import {BaseInterceptor} from "./http/baseInterceptor";
import {DeviceAddComponentComponent} from './device-add-component/device-add-component.component';
import {ReactiveFormsModule} from "@angular/forms";

@NgModule({
  declarations: [
    AppComponent,
    DeviceComponentComponent,
    RuleComponentComponent,
    SimulationComponentComponent,
    DeviceAddComponentComponent
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    BrowserAnimationsModule,
    ElModule.forRoot(),
    ReactiveFormsModule
  ],
  providers: [{provide: HTTP_INTERCEPTORS, useClass: BaseInterceptor, multi: true}],
  bootstrap: [AppComponent]
})
export class AppModule {
}
